import uuid
import time


def get_uuid(uid_len=32):
    if uid_len > 32:
        uid_len = 32
    uid = uuid.uuid1()
    suid = str(''.join(str(uid).split('-')))
    return suid[0:uid_len]


def get_time_str():
    return time.strftime('%Y-%m-%d %H:%M:%S', time.localtime())
